package xiangmu.schoolpaper.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Options;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xiangmu.schoolpaper.pojo.DTO.FactorDTO;
import xiangmu.schoolpaper.result.Result;
import xiangmu.schoolpaper.service.DictExtractDataService;

import java.util.List;

@RestController
@RequestMapping
@Slf4j
@Tag(name="获取数据字典-抽检表数据接口")
public class DictExtractDataController {
    @Autowired
    private DictExtractDataService dictExtractDataService;


    @Operation(summary = "获取数据字典-抽检表数据")
    @GetMapping("/system/factor/getFactor")
    public Result getFactor(){
        log.info("获取数据字典-抽检表数据");
        List<FactorDTO> list =dictExtractDataService.getFactor();
        return Result.success(list);
    }



}
